package com.pictavore.message

/**
 *
 * @author caleb
 */
class MessageType {
	protected code

    protected MessageType(code) {
        this.code = this.getClass().name + code
    }

    @Override
    public boolean isEqual(o) {
        if (! (o instanceof MessageType)) {
            false
        } else {
            o.code == this.code
        }
    }

    @Override
    public int hashCode() {
        return this.code.hashCode()
    }
}

